package com.myh.common.constant;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: ProductConstant    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2024/1/31 15:10   // 时间
 * @Version: 1.0     // 版本
 */
public class ProductConstant {

    public enum AttrEnum{
        ATTR_TYPE_BASE(1, "基本属性"),
        ATTR_TYPE_SALE(0, "销售属性");

        private Integer code;

        private String message;

        private AttrEnum(Integer code, String message){
            this.code = code;
            this.message = message;
        }

        public Integer getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }
    }

    public enum StatusEnum{
        NEW_SPU(0, "新建"),
        UP_SPU(1, "上架"),

        DOWN_SPU(2, "下架");
        private Integer code;
        private String message;
        private StatusEnum(Integer code, String message){
            this.code = code;
            this.message = message;
        }

        public Integer getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }
    }
}
